package org.examcity.util.beanconverter;

/**
 * Interface for object factories.
 * <p>
 * Implementations must be thread-safe.
 * 
 * @author Antonio Gomes
 */
public interface Factory {

	/**
	 * Creates a new object instance.
	 * 
	 * @param source reference object
	 * @param clazz
	 * @return
	 * @throws Exception
	 */
	Object newInstance(Object source, Class<?> clazz) throws Exception;

}
